/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.diogenesistemas.dinggle.model.entity;

import java.io.Serializable;

/**
 *
 * @author Diógenes
 */
public class Tag implements Serializable {

    private Integer Id;
    private String descricao;

    public Tag() {
    }

    public Tag(String descricao) {
        this.descricao = descricao;
    }

    public Integer getId() {
        return Id;
    }

    public void setId(Integer Id) {
        this.Id = Id;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 79 * hash + (this.Id != null ? this.Id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Tag other = (Tag) obj;
        if (this.Id != other.Id && (this.Id == null || !this.Id.equals(other.Id))) {
            return false;
        }
        if ((this.descricao == null) ? (other.descricao != null) : !this.descricao.equals(other.descricao)) {
            return false;
        }
        return true;
    }
}
